package com.project.client.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class LoginVo {
    /**
     * 用户名
     */
    @Pattern(regexp = "^[0-9A-Za-z]{6,20}$", message = "帐号有误")
    @NotBlank(message = "帐号有误")
    private String username;

    /**
     * 用户密码
     */
    @Pattern(regexp = "^[0-9A-Za-z]{6,20}$", message = "密码有误")
    @NotBlank(message = "密码有误")
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
